package com.wtwd.device.model;

import com.wtwd.device.constant.SeparatorConstant;

import java.io.Serializable;

public class BloodPressureWarning implements Serializable {
    /**
     * 高血压
     */
    private int maxBloodPressure;

    /**
     * 低血压
     */
    private int minBloodPressure;

    public int getMaxBloodPressure() {
        return maxBloodPressure;
    }

    public void setMaxBloodPressure(int maxBloodPressure) {
        this.maxBloodPressure = maxBloodPressure;
    }

    public int getMinBloodPressure() {
        return minBloodPressure;
    }

    public void setMinBloodPressure(int minBloodPressure) {
        this.minBloodPressure = minBloodPressure;
    }


    public String serialization(){
        return   minBloodPressure + SeparatorConstant.CMD_BODY_SEGMENTATION + maxBloodPressure;
    }
    @Override
    public String toString() {
        return "BloodPressureWarning{" +
                "maxBloodPressure=" + maxBloodPressure +
                ", minBloodPressure=" + minBloodPressure +
                '}';
    }
}
